/*
 * @Descripttion:
 * @version:
 * @Author: caiailing
 * @Date: 2023-03-29 14:42:43
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-04-04 17:21:19
 */

import { loginUrl, userInfoUrl } from './configBaseUrl'
import http from '@/utils/request'
// 存放用户模块接口地址
enum URL {
  login = `${loginUrl}/login`,
  getUserInfo = `${userInfoUrl}/getUserInfo`,
  logout = `${loginUrl}/logout`
}
// const apiUser = {
// getTest: (params: GetTest.params) => http.get<GetTest.data>('/test', params),
// postTest: (params: PostTest.params) =>
//   http.post<PostTest.data>('/test', params),
// 存放用户模块接口请求方法
export const login = (params) => {
  return http.post<PostLogin.data>(URL.login, params)
}
export const logout = (params) => {
  return http.post(URL.logout, params)
}
export const getUserInfo = (params) => {
  return http.post(URL.getUserInfo, params)
}
// }
